package com.foreknow.demo6;

public class Employee {
    //编号
    private int cardNo;
    //姓名
    private String empName;
    //部门
    private String dept;
    //工资
    private double salary;

    public int getCardNo() {
        return cardNo;
    }

    public void setCardNo(int cardNo) {
        this.cardNo = cardNo;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public static void main(String[] args) {
        Employee emp = new Employee();
        emp.cardNo =123456;
        emp.empName = "Tom";
        emp.dept = "23";
        emp.salary = 123.45;
        System.out.println(emp.cardNo + "---" +emp.empName + "---" + emp.dept + "---" + emp.salary);
    }
}
